package controller.listeners.posCodeCorps;



import model.PosCodeCorpsModel;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

import view.PosCodeCorpsView;

public class NextSelectionListener extends SelectionAdapter {

	private PosCodeCorpsModel _model;
	private PosCodeCorpsView _view;
	
	public NextSelectionListener(PosCodeCorpsView view, PosCodeCorpsModel model) {
		this._model = model;
		this._view = view;
	}
	
	public void widgetSelected(SelectionEvent event) {
		_model.next(false);
		
		_view.setCenters(_model.getCenters());
		_view.set_Corp(_model.get_corp());
		_view.set_PosCodedCenters(_model.get_poscodedCenters());
		
	}
}
